﻿using System.Collections.Generic;

namespace Xugege.AbpExtension.Com.Dto
{

    public class JsTreeDto : JsTreeDto<object>
    {



    }

    public class JsTreeDto<T> where T : class, new()
    {
        public string Id { get; set; }

        public string Parent { get; set; }

        public string Text { get; set; }

        public string Value { get; set; }

        public string Icon { get; set; }

        public JsTreeState State { get; set; }

        public IList<JsTreeDto<T>> Children { get; set; }

        public T Data { get; set; }


    }

    public class JsTreeState
    {

        public JsTreeState()
        {
            Opened = false;
        }

        public bool Opened { get; set; }

        public bool Disabled { get; set; }

        public bool Selected { get; set; }
        public bool Undetermined { get; set; }
    }
}
